package com.example.houtai.mapper;

import com.example.houtai.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.org.dto.UserDto;
import com.org.vo.SysUserVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author 龚梦
 * @since 2021-03-22
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<UserDto> lists(UserDto userDto);

    @Select("select * from sys_user where mobile =#{mobile}")
    SysUser seluserbymobile(String mobile);

    @Select("select * from sys_user where username=#{username} and password=#{password}")
    SysUser seluserbyusername(String username, String password);

    SysUserVo findByUserName(  String username);
}
